Skip to content

icalendar bump + fixes#1274

Merged
fbacall merged 6 commits into
masterfrom
ical-bump
Apr 14, 2026
Merged

icalendar bump + fixes#1274
fbacall merged 6 commits into
masterfrom
ical-bump

Conversation

@fbacall

@fbacall fbacall commented Apr 6, 2026

Copy link
Copy Markdown
Member

Summary of changes

  • Bumps icalendar version and fixes test failure.
  • Re-uses sitemap helper across ingestors that deal with sitemaps.
  • Improves some exception handling to prevent legitimate exceptions being swallowed.
  • Potentially fixes intermittent test failure relating to current space.

Motivation and context

#1264

Intermittent test failure: https://github.com/ElixirTeSS/TeSS/actions/runs/24051302878/job/70147312648#step:9:43

Failure:
ContentProviderTest#test_in_current_space_does_not_limit_resources_to_current_space_if_feature_disabled [test/models/content_provider_test.rb:125]
Minitest::Assertion: Expected false to be truthy.

Checklist

  • I have read and followed the CONTRIBUTING guide.
  • I confirm that I have the authority necessary to make this contribution on behalf of its copyright owner and agree to license it to the TeSS codebase under the BSD license.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the ingestion stack to support the icalendar gem bump and to improve ingestion robustness by reusing shared sitemap parsing and adjusting error handling, alongside a test-suite fix for intermittent failures caused by leaked Space.current_space.

Changes:

  • Bump icalendar to 2.12.2 (and related dependency updates) and adjust iCal ingestion/test expectations accordingly.
  • Reuse shared SitemapHelpers#parse_sitemap in additional ingestors and standardize sitemap parsing behavior on failure.
  • Reset Space.current_space in test teardown to prevent cross-test state leakage.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
test/unit/ingestors/ical_ingestor_test.rb Updates assertions to match new error/message behavior after sitemap/helper + open_url changes.
test/test_helper.rb Clears Space.current_space in teardown to address intermittent failures due to leaked global state.
lib/ingestors/indico_ingestor.rb Removes now-unnecessary nil-guard after sitemap parsing behavior change.
lib/ingestors/ical_ingestor.rb Switches to shared sitemap parsing and removes broad exception swallowing in iCal processing.
lib/ingestors/concerns/sitemap_helpers.rb Adjusts parse contract to return [] on sitemap parse errors and narrows rescued exception type.
lib/ingestors/bioschemas_ingestor.rb Replaces local sitemap parsing with shared SitemapHelpers.
Gemfile.lock Locks icalendar 2.12.2 (plus dependency changes like ice_cube 0.17.0).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/ingestors/ical_ingestor.rb Outdated
@fbacall
fbacall merged commit 774e7c4 into master Apr 14, 2026
11 checks passed
@fbacall
fbacall deleted the ical-bump branch April 14, 2026 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants